#-*-coding:utf-8-*-
'''
Created on 2011-1-16

@author: zhaoyh
'''

from config import render_mako
view=render_mako(directories=['templates/portal'],input_encoding='utf-8')
class index:
    def GET(self):
        #a=CreateTree('sys_menu','false')     
        return view.index()
        #return view.index_menu()
class sidebar:        
    def GET(self):
        return view.sidebar()
    def POST(self):
        return view.sidebar()
class auth:        
    def GET(self, name):
        if not name: 
            name = 'World'
        return 'Hello, ' + name + '!'